﻿<Window x:Class="BlobExplorer.Connect"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cmd="clr-namespace:BlobExplorer"
    Title="Connect" Height="210" Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        
        <Grid.Background>
            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                <LinearGradientBrush.GradientStops>
                    <GradientStop Offset="0" Color="White"/>
                    <GradientStop Offset="1" Color="AliceBlue"/>
                </LinearGradientBrush.GradientStops>
            </LinearGradientBrush>
        </Grid.Background>

        <Label Grid.Row="0" Grid.Column="0">Account Name:</Label>
        <Label Grid.Row="1" Grid.Column="0">Base 64 Key:</Label>
        <Label Grid.Row="2" Grid.Column="0">Blob Storage Uri:</Label>

        <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding StorageInfo.AccountName}" Margin="3"/>
        <TextBox Grid.Row="1" Grid.Column="1" TextWrapping="Wrap" Text="{Binding StorageInfo.Base64Key}" Margin="3"/>
        <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding StorageInfo.BaseUri}" Margin="3"/>

        <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" Margin="0">
            <Button Content="Connect" Padding="3" Margin="5"  IsDefault="True" Command="cmd:Commands.Connect"/>
            <Button Content="Cancel" Padding="3" Margin="5" IsCancel="True" />
        </StackPanel>
        
    </Grid>
</Window>
